﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Hxsoft.AppV1.Admin.ResourceManage.InfoItem.Default" %>

<%@ Register Src="~/Controls/ListBox_FootBox.ascx" TagName="ListBox_FootBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ListBox_HeadBox.ascx" TagName="ListBox_HeadBox" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>信息列表</title>
	<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>
	<script language="javascript" type="text/javascript">
	<!--
	function ReloadPage()
	{
		var btReload = document.getElementById("<%# BtReload.ClientID %>");
		if ( btReload )
			btReload.click();
	}
	-->
	</script>
</head>
<body>
	<form id="form1" runat="server">
		<asp:ScriptManager ID="ScriptManager1" runat="server">
		</asp:ScriptManager>
		<div id="MainBody" runat="server">
			当前位置: 管理中心 →[<%= SiteName %><%= CompanyId.HasValue ? "→" + CompanyName : ""%>] 资源管理 → 信息列表
			<uc:ListBox_HeadBox ID="ListBox_HeadBox1" runat="server" />
			<div class="ListBoxItem">
				<table id="ToolBarBox" cellspacing="0" width="100%">
					<tr>
						<td class="LevelCompart" align="right">
							<input type="button" class="Button" value="全选" onclick="SelectAllInner(&quot;List&quot;, &quot;&quot;);" />
							<input type="button" class="Button" value="反选" onclick="SelectReverseInner(&quot;List&quot;, &quot;&quot;);" />
							|
							<input type="submit" id="BtDelete" value="删除" runat="server" class="Button" onserverclick="BtDelete_ServerClick"
								onclick="return confirm(&quot;是否删除选定的信息？&quot;);" />
						</td>
					</tr>
					<tr>
						<td id="Foot">
							信息标识:<asp:TextBox ID="TbKeyword" runat="server"></asp:TextBox>信息类别:<asp:TextBox ID="TbInfoType"
								runat="server" Columns="10"></asp:TextBox>是否持久化:<asp:DropDownList ID="DdlIsPersistent"
									runat="server">
									<asp:ListItem Value="">-请选择-</asp:ListItem>
									<asp:ListItem Value="true">是</asp:ListItem>
									<asp:ListItem Value="false">否</asp:ListItem>
								</asp:DropDownList>
							<asp:Button ID="BtSearch" runat="server" Text="搜索" OnClick="BtSearch_Click" />
							|
							<asp:Button ID="BtReload" runat="server" Text="刷新" OnClick="BtReload_Click" /></td>
					</tr>
				</table>
			</div>
			<div class="ListBoxItem">
				<asp:UpdatePanel ID="UpList" runat="server">
					<ContentTemplate>
						<table id="ListBox" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td class="LevelCompart">
										<asp:Repeater ID="List" runat="server" OnItemCommand="List_ItemCommand">
											<HeaderTemplate>
												<table id="List" cellspacing="1" cellpadding="2" width="100%">
													<tr id="Title">
														<th width="220">
															信息全局标识</th>
														<th>
															信息类别</th>
														<th width="70">
															是否持久化</th>
														<th width="120">
															创建时间</th>
														<th width="60">
															查看资源</th>
														<th width="40">
															删除</th>
														<th width="40">
															选择</th>
													</tr>
											</HeaderTemplate>
											<ItemTemplate>
												<tr class="mouseout" align="center" onmouseover="listItem_mouseOver(this);" onmouseout="listItem_mouseOut(this);">
													<td>
														<%# Eval("GlobalID") %>
													</td>
													<td>
														<%# Eval("InfoType") %>
													</td>
													<td>
														<%# Convert.ToBoolean(Eval("IsPersistent")) ? "是" : "否" %>
													</td>
													<td>
														<%# Eval("CreationDate") %>
													</td>
													<td>
														<a href="../InfoResource/Default.aspx?GlobalID=<%# Eval("GlobalID") %>&SiteId=<%# SiteId %>">查看资源</a>
													</td>
													<td>
														<asp:LinkButton ID="LbtDelete" CommandName="Delete" OnClientClick="return confirm(&quot;是否删除该信息？&quot;);"
															runat="server">删除</asp:LinkButton>
													</td>
													<td>
														<asp:CheckBox ID="CbSelect" runat="server" />
														<asp:HiddenField ID="Identifier_GlobalID" Value='<%# Eval("GlobalID") %>' runat="server" />
													</td>
												</tr>
											</ItemTemplate>
											<FooterTemplate>
												</table>
											</FooterTemplate>
										</asp:Repeater>
									</td>
								</tr>
								<tr>
									<td id="Td1" align="right">
										<Hxctr:AspNetPager ID="pager" runat="server" AlwaysShow="True" OnPageChanging="pager_PageChanging"
											CustomInfoSectionWidth="" CustomInfoText="" PageSize="20" ShowCustomInfoSection="Left">
										</Hxctr:AspNetPager>
									</td>
								</tr>
							</tbody>
						</table>
					</ContentTemplate>
					<Triggers>
						<asp:AsyncPostBackTrigger ControlID="BtDelete" EventName="ServerClick" />
						<asp:AsyncPostBackTrigger ControlID="BtReload" EventName="Click" />
						<asp:AsyncPostBackTrigger ControlID="BtSearch" EventName="Click" />
					</Triggers>
				</asp:UpdatePanel>
			</div>
			<uc:ListBox_FootBox ID="ListBox_FootBox1" runat="server" />
		</div>
		<Hxctr:MessageBox ID="MessageBox1" runat="server" />
		<Hxctr:UpdateProgress ID="UpdateProgress1" runat="server" />
	</form>
</body>
</html>